home *** CD-ROM | disk | FTP | other *** search
- Path: cnn.Princeton.EDU!franck!tim
- From: tim@franck (Tim Hollebeek)
- Newsgroups: comp.unix.solaris,comp.unix.programmer,comp.lang.c
- Subject: Re: inline code
- Followup-To: comp.unix.solaris,comp.unix.programmer,comp.lang.c
- Date: 31 Jan 1996 22:55:32 GMT
- Organization: Princeton University
- Distribution: inet
- Message-ID: <4eos14$lpk@cnn.Princeton.EDU>
- References: <lbecker-3101961334210001@206.161.148.20>
- NNTP-Posting-Host: franck.princeton.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Lynn Becker (lbecker@avtec.com) wrote:
- : Hi,
-
- : I have some code that I am trying to port to the SparcStation 20 (Solaris 2.4).
- : We have the sparcworks c compiler. (/opt/SUNWspro/bin/cc) and it is
- : choking on an inline keyword (directive to the previous compiler?). I am
- : looking at the manual and the man pages, but haven't decided whether there
- : is a way to make the sun comiler accepts this notation. Does the gcc
- : compiler accept this? Here is a snippet of the code I am using.
-
- gcc allows inline as an extension, but it isn't strictly part of the C
- language. If you can handle not having the routines inlined, try
- passing -Dinline= to the compiler.
-
- -----
- Tim Hollebeek | Everything above is a true statement, for sufficiently
- <space for rent> | false values of true.
- Princeton Univ. | tim@wfn-shop.princeton.edu
- -------------------| http://wfn-shop.princeton.edu/~tim
-